<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>

<meta name="decorator" content="default" />
<meta name="full-screen" content="yes">
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">

<%@ include file="/static/member/themes/ShiShangHong/header.jsp" %>
<script type="text/javascript">
$(document).ready(function() {
	document.title = "超值秒杀";
});
		
	</script>
	<style type="text/css">
	.redFont{
	color: #DD2F1D;
	font-weight:900;
	}
	.btn {
    background-image: none;
    border: 0 none;
    border-radius: 0;
    box-shadow: none;
    padding: 5px 12px;
    text-shadow: none;
}
.btn-danger {
    background-color: #F50F43;
    background-image: linear-gradient(to bottom, #FF1A4D, #E60033);
    background-repeat: repeat-x;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
	</style>
</head>
<body>
	<%@ include file="./header.jsp" %>
	
	
	<div  class="main">
    
    <div  class="p_mod o_address" align="center">
    		<h2  class="p_mod_title">
    		${config.notice }
    		</h2>
            <div  id="city">
    		<ul>
                <li  style="font-size:14px;">
                秒杀时间：<fmt:formatDate value="${config.startTime}" pattern="MM月dd日 "/>至<fmt:formatDate value="${config.endTime}" pattern="MM月dd日 "/>
                <p>${config.notice }</p>
                </li>
        	</ul>
          </div>
   	  </div>
   	  
    
    <c:forEach items="${ page.list}"  var="seckill">
	<form:form id="form${seckill.id }" action="${ctx }/member/doseckill" name="form${seckill.id }" method="POST">
	<input type="hidden" name="price" id="price${seckill.id }" value="${seckill.price }" />
	<input type="hidden" name="wechatId" id="member${wechatId }" value="${wechatId }" />
	<input name="seckill.id" type="hidden"   id="seckill${wechatId }" value="${seckill.id }" /> 
	<input type="hidden" name="uid" id="uid${wechatId }" value="${uid }" />
	<input type="hidden" id="surplus101${seckill.id }" name="surplus101${seckill.id }" value="${seckill.amount }">
	<input type="hidden" id="nowDate" name="nowDate" value="${nowDate }"> 
	<input	type="hidden" id="begin_time" value='<fmt:formatDate value="${seckill.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>'>
	<input type="hidden" id="nextbegin_time" name="nextbegin_time" value="2013-09-17 11:30:00"> 
	<input type="hidden" id="end_time" name="end_time" value='<fmt:formatDate value="${seckill.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>'>
	<input	type="hidden" name="style" value="${style}"/>
    	
    	<div  class="p_mod o_address" align="center">
    		<h2  class="p_mod_title">
    		<img src="${ctxUser }/seckill/${seckill.picPath }"	width="240" height="270" class="prizeImg" onerror="this.src='${ctxRoot}/images/zanwutupian.jpg'"> 
    		</h2>
            <div  id="city">
    		<ul>
                <li  style="font-size:14px;">
                	<span class="redFont">${seckill.price }</span>元秒杀<span class="redFont">${seckill.name }</span>
                		<p class="prizeInfo" id="prizeInfo1">本次秒杀剩余数量<span class="redFont">${seckill.amount }</span>个</p>
                		<p class="prizeCount" >
							<span class="redFont"  >当前时段奖品剩余：${seckill.amount }个</span>
						</p>
						<p class="prizeCount" >
							<span>${seckill.remarks } </span>
						</p>
						<button type="submit" class="btn btn-danger" id="miaoshabutton${ seckill.id}" disabled="disabled"  name="miaoshabutton" <c:if test="${member.score lt config.minScore }">style="display:none" </c:if>  >${seckill.price }元秒杀</button>
                </li>
        	</ul>
          </div>
   	  </div>
   	  </form:form>
   	  </c:forEach>
	</div>
	
<c:if test="${uid ne '34' }">
		<jsp:include page="/static/member/themes/default/footer.jsp">
			<jsp:param value="${uid }" name="uid"/>
		</jsp:include>
	</c:if>
</body>
</html>
